package com.jbp.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jbp.model.User;
import com.jbp.model.UserLocation;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * (UserLocation)表数据库访问层
 * @author cc
 * @since 2021-09-16 17:18:22
 */
public interface UserLocationDao extends BaseMapper<UserLocation> {

    void saveLocation(UserLocation location);

    void updateLocationById(UserLocation location);

    List<UserLocation> nearby(BigDecimal lng, BigDecimal lat, Integer userId, IPage<User> page);
}